// 编写一个函数，其作用是将输入的字符串反转过来。输入字符串以字符数组 char[] 的形式给出。
// 示例 1：
// 输入：["h","e","l","l","o"]
// 输出：["o","l","l","e","h"]

package main

import (
	"fmt"
)


func reverseString(s []byte)  {
	total := len(s)
	s1 := [...]byte{'0'}
	for i:=0; i< total/2;i++{
		s1[0] = s[i]
		s[i] = s[total-1-i]
		s[total-1-i] = s1[0]
	}
	fmt.Printf("%c\n",s)
}


func main(){
	data:= []byte{'h','e','l','l','o'}
	reverseString(data)
}


